package cn.xt.dao.user;

import cn.xt.bean.Users;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


public interface UserDao {
    //登录
    public Users login(@Param("phone")String phone,@Param("pwd")String pwd);

    //验证用户名
    public Users yzphone(@Param("phone") String phone);

    //注册
    public int  register(Users users);
    //查询修改密码的用户是否存在
    public  Users modifyByName(@Param("usersname")String usersname);
    //修改密码 根据电话和用户名修改
   public int UpdatePassword(@Param("pwd") String pwd, @Param("phone") String phone);

   //修改头像
   public boolean UpdImage(@Param("image") String image,@Param("users_id") int users_id);
    //修改手机号根据Id
   public boolean UpdatePhone(@Param("phone") String phone,@Param("user_id") int user_id);
    //修改用户
   public boolean UpdateUser(Users users);

   public Users user(int users_id);
}
